package com.xuef.dfs.datanode.server;

public class DataNode {
    private volatile boolean shouldRun;
    private NameNodeOfferService nameNodeOfferService;

    public DataNode() {
    }

    public void initialize(){
        this.shouldRun = true;
        nameNodeOfferService = new NameNodeOfferService();
        this.nameNodeOfferService.start();
    }

    private void run(){
        try{
            while(shouldRun){
                Thread.sleep(10*1000);
            }
        }catch (Exception e){

        }
    }

    public static void main(String[] args) {
        DataNode dataNode = new DataNode();
        dataNode.initialize();
        dataNode.run();
    }
}
